package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 付邮试用表
 * @Author: flyco
 * @Date:   2020-09-29
 * @Version: V1.0
 */
@Data
@TableName("sms_postage_promotion")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_postage_promotion对象", description="付邮试用表")
public class SmsPostagePromotion {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**商品id*/
	@Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**货号*/
	@Excel(name = "货号", width = 15)
    @ApiModelProperty(value = "货号")
	private String productSn;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
	private String name;
	/**商品价格*/
	@Excel(name = "商品价格", width = 15)
    @ApiModelProperty(value = "商品价格")
	private java.math.BigDecimal price;
	/**邮费*/
	@Excel(name = "邮费", width = 15)
    @ApiModelProperty(value = "邮费")
	private java.math.BigDecimal freight;
	/**商品总数量*/
	@Excel(name = "商品总数量", width = 15)
    @ApiModelProperty(value = "商品总数量")
	private Integer stock;
	/**每人可领取次数*/
	@Excel(name = "每人可领取次数", width = 15)
    @ApiModelProperty(value = "每人可领取次数")
	private Integer limitCount;
	/**已被领数量*/
	@Excel(name = "已被领数量", width = 15)
    @ApiModelProperty(value = "已被领数量")
	private Integer lockCount;
	/**冻结数量*/
	@Excel(name = "冻结数量", width = 15)
    @ApiModelProperty(value = "冻结数量")
	private Integer frozenCount;
	/**冻结规则*/
	@Excel(name = "冻结规则", width = 15)
    @ApiModelProperty(value = "冻结规则")
	private Object frozenData;
	/**活动开启时间*/
	@Excel(name = "活动开启时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动开启时间")
	private Date startTime;
	/**活动结束时间*/
	@Excel(name = "活动结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动结束时间")
	private Date endTime;
	/**是否新用户标记*/
	@Excel(name = "是否新用户标记", width = 15)
    @ApiModelProperty(value = "是否新用户标记")
	private Integer newerFlag;
	/**开启状态*/
	@Excel(name = "开启状态", width = 15)
    @ApiModelProperty(value = "开启状态")
	private Integer status;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
	private Integer sort;
	/**包邮地址，默认UUID，可修改*/
	@Excel(name = "包邮地址，默认UUID，可修改", width = 15)
	@ApiModelProperty(value = "包邮地址，默认UUID，可修改")
	private String postageUuid;
	/**version*/
	@Excel(name = "version", width = 15)
    @ApiModelProperty(value = "version")
	private Integer version;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
